package com.ruoyi.system.service.gallery.impl;

import java.util.List;

import com.ruoyi.system.domain.gallery.GalleryCase;
import com.ruoyi.system.domain.gallery.GalleryOriginal;
import com.ruoyi.system.mapper.gallery.GalleryCaseMapper;
import com.ruoyi.system.mapper.gallery.GalleryOriginalMapper;
import com.ruoyi.system.service.gallery.GalleryCaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 图库案例说明Service业务层处理
 * 
 * @author 张少丛
 * @date 2020-11-30
 */
@Service
public class GalleryCaseServiceImpl implements GalleryCaseService
{
    @Autowired
    private GalleryCaseMapper galleryCaseMapper;

    @Autowired
    private GalleryOriginalMapper galleryOriginalMapper;

    /**
     * 查询图库案例说明
     * 
     * @param galleryCaseId 图库案例说明ID
     * @return 图库案例说明
     */
    @Override
    public GalleryCase selectGalleryCaseById(Long galleryCaseId)
    {
        return galleryCaseMapper.selectGalleryCaseById(galleryCaseId);
    }

    /**
     * 查询图库案例说明列表
     * 
     * @param galleryCase 图库案例说明
     * @return 图库案例说明
     */
    @Override
    public List<GalleryCase> selectGalleryCaseList(GalleryCase galleryCase)
    {
        return galleryCaseMapper.selectGalleryCaseList(galleryCase);
    }

    /**
     * 新增图库案例说明
     * 
     * @param galleryCase 图库案例说明
     * @return 结果
     */
    @Override
    public int insertGalleryCase(GalleryCase galleryCase)
    {
        return galleryCaseMapper.insertGalleryCase(galleryCase);
    }

    /**
     * 修改图库案例说明
     * 
     * @param galleryCase 图库案例说明
     * @return 结果
     */
    @Override
    public int updateGalleryCase(GalleryCase galleryCase)
    {
        return galleryCaseMapper.updateGalleryCase(galleryCase);
    }

    /**
     * 批量删除图库案例说明
     * 
     * @param galleryCaseIds 需要删除的图库案例说明ID
     * @return 结果
     */
    @Override
    public int deleteGalleryCaseByIds(Long[] galleryCaseIds)
    {
        return galleryCaseMapper.deleteGalleryCaseByIds(galleryCaseIds);
    }

    /**
     * 删除图库案例说明信息
     * 
     * @param galleryCaseId 图库案例说明ID
     * @return 结果
     */
    @Override
    public int deleteGalleryCaseById(Long galleryCaseId)
    {
        return galleryCaseMapper.deleteGalleryCaseById(galleryCaseId);
    }
}
